package com.yungee.util;

import java.util.HashMap;
import java.util.Map;
import org.apache.http.Header;
import org.apache.http.HttpEntity;

public class HttpResult {
    private HttpEntity httpEntity;
    private Map<String, Header> headerAll;
    private int statusCode;
    private String body;

    public HttpResult() {
    }

    public int getStatusCode() {
        return this.statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public void setHeaders(Header[] headers) {
        this.headerAll = new HashMap();
        Header[] var2 = headers;
        int var3 = headers.length;

        for(int var4 = 0; var4 < var3; ++var4) {
            Header header = var2[var4];
            this.headerAll.put(header.getName(), header);
        }

    }

    public Map<String, Header> getHeaderAll() {
        return this.headerAll;
    }

    public void setHttpEntity(HttpEntity entity) {
        this.httpEntity = entity;
    }

    public HttpEntity getHttpEntity() {
        return this.httpEntity;
    }

    public String getBody() {
        return this.body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}